import { request } from './request.js'
export const getBanner = () => {
	return request({
		url: "/homeBanner",
		header: { "access-key": "xu-123" }
	})
}

export const getClassify = () => {
	return request({ url: "/randomWall", header: { "access-key": "xu-123" } })
}

export const getSpecial = () => {
	return request({ url: "/classify", data: { select: true }, header: { "access-key": "xu-123" } })
}
export const getSpecial1 = (pageNum) => {
	return request({ url: "/classify", header: { "access-key": "xu-123" }, data: { pageNum, pageSize: 9 } })
}

export const getList = (id, pageNum) => {
	return request({
		url: '/wallList',
		data: {
			classid: id,
			pageNum,
			pageSize: 12
		},
		header: { "access-key": "xu-123" }

	})
}
export const getDetail = (id) => {
	return request({
		url: '/detailWall',
		data: {
			id: id
		},
		header: { "access-key": "xu-123" }

	})
}